//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.goldhuman.IO.Protocol;

import java.io.File;
import java.net.URL;
import java.util.Map;

public class Rpcgen extends Parser {
    public Rpcgen(URL newconfig) {
        if (newconfig != null) {
            this.setConfig(newconfig);
        }

    }

    public void generate_code() throws Exception {
        Parser.ParseProtocol((Map)null);
        Parser.ParseRpc((Map)null);
    }

    public static void main(String[] args) {
        String filename = null;
        if (args.length != 0) {
            filename = args[0];
        }

        try {
            Rpcgen gen = new Rpcgen(filename == null ? null : (new File(filename)).toURI().toURL());
            gen.generate_code();
        } catch (Exception var3) {
            var3.printStackTrace();
        }

    }
}
